# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-get-mac
pkgname=('python2-get-mac' 'python-get-mac')
_pkgname=get-mac
pkgver=0.9.2
pkgrel=4
pkgdesc='Get MAC addresses of remote hosts and local interfaces.'
url='https://pypi.org/project/get-mac/#files'
arch=('any')
license=('MIT')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('4306d47d521c9f1ae50221789e6ff6c932357abdc17633b403a0709d91e7714a74bdbba231c1ef20fdf2dc35c6ff4cddcc6f6d3203e2205bf48d439c995649f2')

package_python2-get-mac() {
  depends=('python2')

  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1
}

package_python-get-mac() {
  depends=('python')

  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1
}

